# obstacle.py
import pygame
from settings import *

class Obstacle(pygame.sprite.Sprite):
    def __init__(self, game, x, y, w, h):
        super().__init__()
        self.game = game
        self.rect = pygame.Rect(x, y, w, h)
        self.image = pygame.Surface((w, h))
        self.image.fill(OBSTACLE_COLOR)